﻿# 包含路径
INCLUDE_DIRECTORIES(../TextFormat)

# 源文件
SET(TEXT_FORMAT_SRC_FILES_TEST TextFormatTest.cpp)

# 可执行文件名
SET(EXECUTABLE_FILE_NAME "${PROJECT_NAME}Test")
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
SET(CMAKE_CXX_FLAGS "-Wl,-rpath=./")
ENDIF()

# 将源代码添加到此项目的可执行文件。
ADD_EXECUTABLE (${EXECUTABLE_FILE_NAME} ${TEXT_FORMAT_SRC_FILES_TEST})
TARGET_LINK_LIBRARIES(${EXECUTABLE_FILE_NAME} ${PROJECT_NAME})
# 安装目标定义
INSTALL(TARGETS ${EXECUTABLE_FILE_NAME} RUNTIME DESTINATION bin)

